package io.seata.sharding4.account.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.seata.sharding4.account.entity.Account;
import org.apache.ibatis.annotations.Param;

/**
 * Mapper 接口
 *
 * @author Administrator
 */
public interface AccountMapper extends BaseMapper<Account> {
    /**
     * 减少账户余额
     *
     * @param id
     * @param amount
     * @return
     */
    int decreaseAccount(@Param("id") Integer id, @Param("amount") Double amount);
}
